﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="GetWork.aspx.cs" Inherits="home_GetWork" %>
<%@ Register TagPrefix="PM" TagName="LeftMenu" Src="~/control/LeftMenu.ascx" %>
<%@ Register TagPrefix="PM" TagName="Header" Src="~/control/Header.ascx" %>
<%@ Register TagPrefix="PM" TagName="Footer" Src="~/control/Footer.ascx" %>
<%@ Register TagPrefix="PM" TagName="Pager" Src="~/control/Pager.ascx" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Works management</title>
    <link rel="Stylesheet" type="text/css" href="../css/style.css" media="all" />
    <link rel="Stylesheet" type="text/css" href="../css/window.css" media="all" />
    <link rel="Stylesheet" type="text/css" href="../css/button.css" media="all" />
    <link rel="Stylesheet" type="text/css" href="../css/getwork.css" media="all" />
    <script type="text/javascript" language="javascript" src="../js/jquery-1.4.1.js"></script>
    <script type="text/javascript" language="javascript" src="../js/commonfunctions.js"></script>
    <script type="text/javascript" language="javascript" src="../js/getwork.js"></script>
    <script type="text/javascript" language="javascript">
        
    </script>
</head>
<body>
    <form id="form1" runat="server">
        <PM:Header ID="header" runat="server" /> 
        <div class="clear"></div>
        <table>
            <tr>
                <td style="vertical-align:top;">
                    <PM:LeftMenu ID="left_menu" runat="server" />
                </td>
                <td style="vertical-align:top;">
                    <div id="main">
                        <div class="clear"></div>
                        <div class="titleuser">
                            Dự án tham gia của <span runat="server" id="username"></span>
                        </div>
                        <div class="clear"></div>
                        <asp:ListBox runat="server" ID="listprojects"  CssClass="listprojects" SelectionMode="Multiple">  
                        </asp:ListBox>
                        <div class="listcontrol" >
                            <input type="button" class="buttonrightall" id="rightall" /><br />
                            <input type="button" class="buttonright" id="right" /><br />
                            <input type="button" class="buttonleft" id="left" /><br />
                            <input type="button" class="buttonleftall" id="leftall" />
                        </div>
                        <asp:ListBox runat="server" ID="listjoinedproject"  CssClass="listprojects" SelectionMode="Multiple">
                        </asp:ListBox>
                        <div id="currentpermission" style="float:left; display:none;">
                            <span style="display:block; margin:2px 2px 0;">Quyền</span>
                            <select id="listpermission">
                                <option selected="selected" value="5">Người dùng</option>
                                <option value="4">Trưởng nhóm</option>
                                <option value="3">Quản lý</option>
                            </select><br />
                            <input type="hidden" id="iduser" value="<%=userId.ToString() %>" />
                            <input type="button" value="Update" onclick="updatePermission()" />
                        </div>
                        <asp:HiddenField runat="server" ID="unselectedprojects" />
                        <asp:HiddenField runat="server" ID="selectedprojects" />
                        <asp:Label runat="server" ID="display"></asp:Label>
                        <div class="clear"></div>
                        <div style="text-align:center;">
                            <asp:Button runat="server" ID="getwork" Text="Phân công" onclick="submit_Click" OnClientClick="return setSelectedProject();" />
                            <input type="button" value="Nhập lại" />
                        </div>
                    </div>
                </td>
            </tr>
        </table> 
        <div class="clear"></div>
        <PM:Footer runat="server" ID="footer" />
    </form>
</body>
</html>
